Skip to content

Conversation

@piekstra
Copy link
Collaborator

Summary

  • Add --cursor flag to cfl space list for cursor-based pagination
  • When more results are available, display the cursor value for the next page
  • Extract cursor from the _links.next URL returned by the Confluence API

Usage:

cfl space list                           # First page (25 results)
cfl space list --cursor "eyJpZCI6MTIzfQ==" # Next page using cursor
cfl space list --limit 100               # Larger page size

Fixes #101

Add --cursor flag to space list command, enabling cursor-based
pagination through all spaces. When more results are available,
the CLI now shows the cursor value to use for the next page.

Fixes #101
@piekstra piekstra requested a review from rianjs January 28, 2026 01:50
@piekstra piekstra merged commit 8b19568 into main Jan 30, 2026
3 checks passed
@piekstra piekstra deleted the feat/101-space-list-pagination branch January 30, 2026 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

space list: no pagination support, cannot discover all spaces

2 participants